package homework5;

public class Chapter08 {
    public static void main(String[] args) {
        int arr[]={20,85,64,12,85};
        int sum=0;
        for (int i=0;i<arr.length;i++){
            sum=sum+arr[i];
        }
        //System.out.println(sum);
        int sum1=0;
         sum1/=arr.length;
        int max=arr[2];
        for (int j=1;j<arr.length;j++){
            if (max<arr[j]){
                max=arr[j];
            }
        }
        //System.out.println(max);
        if (max>sum1){
            System.out.println("比平均值大的是"+max);
        }
    }
}
